package com.kmproject.haifu.mvp.presenter;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.graphics.Paint;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.http.imageloader.ImageLoader;
import com.jess.arms.http.imageloader.glide.ImageConfigImpl;
import com.jess.arms.integration.AppManager;
import com.jess.arms.mvp.BasePresenter;
import com.jess.arms.utils.ArmsUtils;
import com.jess.arms.widget.CustomPopupWindow;
import com.jess.arms.widget.alertview.AlertView;
import com.jess.arms.widget.alertview.AlertViewOnItemClickListener;
import com.jess.arms.widget.autolayout.AutoToolbar;
import com.kmproject.haifu.R;
import com.kmproject.haifu.app.utils.AppUtil;
import com.kmproject.haifu.app.utils.RxUtils;
import com.kmproject.haifu.mvp.contract.MemberCenterMainContract;
import com.kmproject.haifu.mvp.model.entity.ResultBean;
import com.kmproject.haifu.mvp.model.entity.beans.MemberBuyRecordInfoBean;
import com.kmproject.haifu.mvp.model.entity.beans.MemberCenterUserInfoBean;
import com.kmproject.haifu.mvp.model.entity.beans.MemberFeatureBean;
import com.kmproject.haifu.mvp.ui.activity.HomeActivity;
import com.kmproject.haifu.mvp.ui.adapter.MembercentermainJfjlAdapter;

import java.util.List;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.ButterKnife;
import me.jessyan.rxerrorhandler.core.RxErrorHandler;
import me.jessyan.rxerrorhandler.handler.ErrorHandleSubscriber;


/**
 * ================================================
 * Description:
 * <p>
 * Created by MVPArmsTemplate on 07/18/2019 15:25
 * <a href="mailto:jess.yan.effort@gmail.com">Contact me</a>
 * <a href="https://github.com/JessYanCoding">Follow me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms">Star me</a>
 * <a href="https://github.com/JessYanCoding/MVPArms/wiki">See me</a>
 * <a href="https://github.com/JessYanCoding/MVPArmsTemplate">模版请保持更新</a>
 * ================================================
 */
@ActivityScope
public class MemberCenterMainPresenter extends BasePresenter<MemberCenterMainContract.Model, MemberCenterMainContract.View> {
    @Inject
    RxErrorHandler mErrorHandler;
    @Inject
    Application mApplication;
    @Inject
    ImageLoader mImageLoader;
    @Inject
    AppManager mAppManager;
    private CustomPopupWindow customPopupWindow;//设置自动缴费的view
    private PopuwindowViewHold popuwindowViewHold;

    private CustomPopupWindow customPopupWindowForJFLL;//缴费记录列表
    private PopuwindowViewJFJLHold popuwindowViewHoldForJFJL;

    private CustomPopupWindow customPopupWindowForJFLLInfo;//升级详情
    private PopuwindowViewJFJLInfoHold popuwindowViewHoldForJFJLInfo;//升级详情
    MembercentermainJfjlAdapter membercentermainJfjlAdapter;


    @Inject
    public MemberCenterMainPresenter(MemberCenterMainContract.Model model, MemberCenterMainContract.View rootView) {
        super(model, rootView);
    }

    /**
     * 关闭自动缴费
     */
      public void closeAutomaticRenewal(){
        mModel.closeAutomaticRenewal().compose(RxUtils.applySchedulers(mRootView))
                .subscribe(new ErrorHandleSubscriber<ResultBean>(mErrorHandler) {
                    @Override
                    public void onNext(ResultBean resultBean) {
                     if (AppUtil.isSuccess(resultBean))
                     {
                         mRootView.showMessage("自动续费已关闭");
                         mRootView.closeAutomaticRenewalSuccess();
//                         customPopupWindow.dismiss();
                         popuwindowViewHold.membercentermainGlzdjfPopuwindowPayWayClose.setVisibility(View.GONE);
                         popuwindowViewHold.membercentermainGlzdjfPopuwindowZdxffw.setText("已关闭");

                     }else {
                         mRootView.showMessage(resultBean.getMessage());
                       }
                    }
                });
      }

    /**
     * 获取自动管理升级信息
     */
   public void  ManageAutomaticRenewal() {
        mModel.ManageAutomaticRenewal().compose(RxUtils.applySchedulers(mRootView))
                .subscribe(new ErrorHandleSubscriber<ResultBean<MemberCenterUserInfoBean.MemberLevelBean>>(mErrorHandler) {
                    @Override
                    public void onNext(ResultBean<MemberCenterUserInfoBean.MemberLevelBean> memberLevelBeanResultBean) {
                         if (AppUtil.isSuccess(memberLevelBeanResultBean))
                         {
                             mRootView.manageAutomaticRenewalSuccess(memberLevelBeanResultBean.getData());
                         }
                         else {
                             mRootView.showMessage(memberLevelBeanResultBean.getMessage());
                         }
                    }
                });
    }
    /**
     * 右边菜单栏弹框
     * @param activity
     * @param view
     */
    public void showTipPopuwindow(Activity activity,View view,String msg)
    {
        CustomPopupWindow menuPopuwindow = new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity,R.layout.membercentermain_ts_popuwindow)).parentView(view)
                .animationStyle(R.style.Animation_Activity).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(false).isWrap(true).isMenu(true).build();
        View view1 = menuPopuwindow.getContentView();
        TextView membercentermain_ts_popuwindow_txt=view1.findViewById(R.id.membercentermain_ts_popuwindow_txt);
        membercentermain_ts_popuwindow_txt.setText(msg);
        menuPopuwindow.show();

    }
    /**
     * 右边菜单栏弹框
     * @param activity
     * @param view
     */
    public void showRightPopuwindow(Activity activity,View view)
    {
        CustomPopupWindow menuPopuwindow = new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity,R.layout.membercentermain_menu_popuwindow)).parentView(view)
                .animationStyle(R.style.Animation_Activity).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(false).isWrap(true).isMenu(true).build();
        View view1 = menuPopuwindow.getContentView();
        view1.findViewById(R.id.membercentermain_menu_popuwindow_xx_lay).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                AppUtil.gotoMessage(activity);
            }
        });
        view1.findViewById(R.id.membercentermain_menu_popuwindow_sy_lay).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //回到首页
                Intent intent = new Intent(activity, HomeActivity.class);
                intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
             ArmsUtils.startActivity(intent);

            }
        });
        menuPopuwindow.show();

    }

    /**
     * 获取用户会员中心信息
     */
    public void getMemberLevelByUser() {
        mModel.getMemberLevelByUser().compose(RxUtils.applySchedulers(mRootView))
                .subscribe(new ErrorHandleSubscriber<ResultBean<MemberCenterUserInfoBean>>(mErrorHandler) {
                    @Override
                    public void onNext(ResultBean<MemberCenterUserInfoBean> memberCenterUserInfoBeanResultBean) {
                        if (AppUtil.isSuccess(memberCenterUserInfoBeanResultBean)) {
                            mRootView.getMemberLevelByUserSuccess(memberCenterUserInfoBeanResultBean.getData());
                        } else {
                            mRootView.showMessage(memberCenterUserInfoBeanResultBean.getMessage());
                        }
                    }
                });
    }


    /**
     * 获取会员特权信息，根据特权id
     *
     * @param memberLevelId
     */
    public void getMemberFunctionConfigure(String memberLevelId) {

        mModel.getMemberFunctionConfigure(memberLevelId).compose(RxUtils.applySchedulers(mRootView))
                .subscribe(new ErrorHandleSubscriber<ResultBean<List<MemberFeatureBean>>>(mErrorHandler) {
                    @Override
                    public void onNext(ResultBean<List<MemberFeatureBean>> listResultBean) {
                        if (AppUtil.isSuccess(listResultBean)) {
                            mRootView.getMemberFunctionConfigureSuccess(listResultBean.getData());
                        } else {
                            mRootView.showMessage(listResultBean.getMessage());
                        }
                    }
                });
    }


    /**
     * 获取用户的缴费记录
     */
    public void getMemberUpgradeRecordList() {
        mModel.getMemberUpgradeRecordList().compose(RxUtils.applySchedulers(mRootView))
                .subscribe(new ErrorHandleSubscriber<ResultBean<List<MemberBuyRecordInfoBean>>>(mErrorHandler) {
                    @Override
                    public void onNext(ResultBean<List<MemberBuyRecordInfoBean>> listResultBean) {
                        if (AppUtil.isSuccess(listResultBean)) {
                            mRootView.getMemberUpgradeRecordListSuccess(listResultBean.getData());
                            return;
                        }
                        mRootView.showMessage(listResultBean.getMessage());
                    }
                });
    }

    /**
     * 缴费记录详情
     * @param activity
     * @param view
     */
    public void showPopuWindowToJFJLInfo(Activity activity, View view, MemberBuyRecordInfoBean memberBuyRecordInfoBean) {

        customPopupWindowForJFLLInfo = new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity, R.layout.membercentermain_jfjl_info_popuwindow)).parentView(view)
                .animationStyle(R.style.mypopwindow_anim_style).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(false).build();
        View view1 = customPopupWindowForJFLLInfo.getContentView();
        popuwindowViewHoldForJFJLInfo = new PopuwindowViewJFJLInfoHold(view1);
        popuwindowViewHoldForJFJLInfo.toolbarTitle.setText(ArmsUtils.getString(activity, R.string.membercentermain_jfjl_gmxq));
        popuwindowViewHoldForJFJLInfo.toolbarTitle.setTextColor(ArmsUtils.getColor(activity, R.color.white));
        popuwindowViewHoldForJFJLInfo.toolbar.setBackgroundColor(ArmsUtils.getColor(activity, R.color.color_3F3F4B));
        popuwindowViewHoldForJFJLInfo.toolbarBackImg.setImageResource(R.drawable.member_center_main_back_img);
        popuwindowViewHoldForJFJLInfo.toolbarBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                customPopupWindowForJFLLInfo.dismiss();
            }
        });
        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowDdh.setText(memberBuyRecordInfoBean.getOrderNumber());
        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowGmsj.setText(memberBuyRecordInfoBean.getCreateTime().substring(0,16));
        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowZdxfGmdj.setText(memberBuyRecordInfoBean.getLevelName()+" | "+memberBuyRecordInfoBean.getRuleName());

        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowZffs.setText(memberBuyRecordInfoBean.getPayWayName());

        mRootView.getGlideImg().loadImage(activity, ImageConfigImpl.builder().url(memberBuyRecordInfoBean.getPayWayImage()).imageRadius(5)
                .imageView(popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowZffsImg)
                .build());

        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowHyj.setText(memberBuyRecordInfoBean.getAmount()+"P");
        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowHl.setText("1:"+memberBuyRecordInfoBean.getDiscountExchangeRate());
        popuwindowViewHoldForJFJLInfo.membercentermainGlzdjfPopuwindowSf.setText(memberBuyRecordInfoBean.getDiscountAmount()+"元");
        customPopupWindowForJFLLInfo.show();
    }

    /**
     * 控制显示缴费记录
     *
     * @param activity
     * @param view
     */
    public void showPopuWindowToJFJL(Activity activity, View view, List<MemberBuyRecordInfoBean> datas) {
        if (customPopupWindowForJFLL != null&&membercentermainJfjlAdapter!=null) {
            membercentermainJfjlAdapter.setNewData(datas);
            if (datas==null||datas.isEmpty()){
                membercentermainJfjlAdapter.setEmptyView(AppUtil.setEmptyView(activity,"还没有升级记录，快去升级会员吧~",null,null,true));
            }
            customPopupWindowForJFLL.show();
            return;
        }
        customPopupWindowForJFLL = new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity, R.layout.membercentermain_jfjl_popuwindow)).parentView(view)
                .animationStyle(R.style.mypopwindow_anim_style).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(false).build();
        View view1 = customPopupWindowForJFLL.getContentView();
        popuwindowViewHoldForJFJL = new PopuwindowViewJFJLHold(view1);
        popuwindowViewHoldForJFJL.toolbarTitle.setText(ArmsUtils.getString(activity, R.string.membercentermain_jfjl_title));
        popuwindowViewHoldForJFJL.toolbarTitle.setTextColor(ArmsUtils.getColor(activity, R.color.white));
        popuwindowViewHoldForJFJL.toolbar.setBackgroundColor(ArmsUtils.getColor(activity, R.color.color_3F3F4B));
        popuwindowViewHoldForJFJL.toolbarBackImg.setImageResource(R.drawable.member_center_main_back_img);
        popuwindowViewHoldForJFJL.toolbarBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                customPopupWindowForJFLL.dismiss();
            }
        });
        popuwindowViewHoldForJFJL.membercentermainJfjlPopuwindowRecyclerView.setLayoutManager(new LinearLayoutManager(activity));

         membercentermainJfjlAdapter = new MembercentermainJfjlAdapter(datas);
        if (datas==null||datas.isEmpty()){
            View view2=AppUtil.setEmptyView(activity,"还没有升级记录，快去升级会员吧~",null,null,true);
            membercentermainJfjlAdapter.setEmptyView(view2);
        }
        popuwindowViewHoldForJFJL.membercentermainJfjlPopuwindowRecyclerView.setAdapter(membercentermainJfjlAdapter);
        membercentermainJfjlAdapter.openLoadAnimation(BaseQuickAdapter.SLIDEIN_BOTTOM);
        membercentermainJfjlAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
            @Override
            public void onItemClick(BaseQuickAdapter adapter, View mview, int position) {
                showPopuWindowToJFJLInfo(activity,view,membercentermainJfjlAdapter.getData().get(position));
            }
        });
        customPopupWindowForJFLL.show();
    }

    /**
     * 控制popu显示自动缴费
     */
    public void showPopuWindowToZDJF(Activity activity, View view,MemberCenterUserInfoBean.MemberLevelBean mmemberLevelBean) {
        customPopupWindow = new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity, R.layout.membercentermain_glzdjf_popuwindow)).parentView(view)
                .animationStyle(R.style.mypopwindow_anim_style).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(false).build();
        View view1 = customPopupWindow.getContentView();
        popuwindowViewHold = new PopuwindowViewHold(view1);
        popuwindowViewHold.membercentermainGlzdjfPopuwindowPriceOld.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG);
        popuwindowViewHold.toolbarTitle.setText(ArmsUtils.getString(activity, R.string.membercentermain_gzldxf_title));
        popuwindowViewHold.toolbarTitle.setTextColor(ArmsUtils.getColor(activity, R.color.white));
        popuwindowViewHold.toolbar.setBackgroundColor(ArmsUtils.getColor(activity, R.color.color_3F3F4B));
        popuwindowViewHold.toolbarBackImg.setImageResource(R.drawable.member_center_main_back_img);
        popuwindowViewHold.membercentermainGlzdjfPopuwindowXfcp.setText(mmemberLevelBean.getLevelName()+"（"+mmemberLevelBean. getRuleName()+"）");
        popuwindowViewHold.membercentermainGlzdjfPopuwindowPriceNow.setText(mmemberLevelBean.getDiscountAmount()+"P");
        popuwindowViewHold.membercentermainGlzdjfPopuwindowPriceOld.setText("（"+mmemberLevelBean.getAmount()+"P）");
        popuwindowViewHold.membercentermainGlzdjfPopuwindowXfsj.setText(mmemberLevelBean.getExpiresTime()!=null?mmemberLevelBean.getExpiresTime().substring(0,10):"");
        popuwindowViewHold.membercentermainGlzdjfPopuwindowKtfwsj.setText(mmemberLevelBean.getCreateTime());
       mRootView.getGlideImg().loadImage(activity, ImageConfigImpl.builder().url(mmemberLevelBean.getPayWayImage()).imageRadius(5)
                .imageView(popuwindowViewHold.membercentermainGlzdjfPopuwindowPayWayImg)
                .build());
        popuwindowViewHold.membercentermainGlzdjfPopuwindowPayWayZfb.setText(mmemberLevelBean.getPayWayName());
        popuwindowViewHold.toolbarBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                customPopupWindow.dismiss();
            }
        });
        popuwindowViewHold.membercentermainGlzdjfPopuwindowPayWayClose.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                CustomPopupWindow dialog=new CustomPopupWindow.Builder().contentView(CustomPopupWindow.inflateView(activity, R.layout.membercenter_popuwindow_dialog)).parentView(view)
                        .animationStyle(R.style.mypopwindow_anim_style).customListener(new CustomPopupWindow.CustomPopupWindowListener() {
                    @Override
                    public void initPopupView(View contentView) {

                    }
                }).isHaveBackGround(true).isWrap(true).build();
                View view2 = dialog.getContentView();
                TextView membercenter_popuwindow_dialog_close=view2.findViewById(R.id.membercenter_popuwindow_dialog_close);
                TextView membercenter_popuwindow_dialog_sure=view2.findViewById(R.id.membercenter_popuwindow_dialog_sure);
                membercenter_popuwindow_dialog_close.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        dialog.dismiss();
                    }
                });
                membercenter_popuwindow_dialog_sure.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        dialog.dismiss();
                        closeAutomaticRenewal();
                    }
                });
                dialog.show();
            }
        });
        customPopupWindow.show();
    }

    public static class PopuwindowViewJFJLInfoHold {
        @BindView(R.id.toolbar_backImg)
        ImageView toolbarBackImg;
        @BindView(R.id.toolbar_back)
        RelativeLayout toolbarBack;
        @BindView(R.id.toolbar_title)
        TextView toolbarTitle;
        @BindView(R.id.back_right_icon)
        ImageView backRightIcon;
        @BindView(R.id.back_right_txt)
        TextView backRightTxt;
        @BindView(R.id.toolbar_right)
        RelativeLayout toolbarRight;
        @BindView(R.id.toolbar)
        AutoToolbar toolbar;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_ddh)
        TextView membercentermainGlzdjfPopuwindowDdh;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_gmsj)
        TextView membercentermainGlzdjfPopuwindowGmsj;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_zdxf_gmdj)
        TextView membercentermainGlzdjfPopuwindowZdxfGmdj;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_zffs_img)
        ImageView membercentermainGlzdjfPopuwindowZffsImg;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_zffs)
        TextView membercentermainGlzdjfPopuwindowZffs;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_hyj)
        TextView membercentermainGlzdjfPopuwindowHyj;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_hl)
        TextView membercentermainGlzdjfPopuwindowHl;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_sf)
        TextView membercentermainGlzdjfPopuwindowSf;

        public PopuwindowViewJFJLInfoHold(View view) {
//            R.layout.membercentermain_jfjl_info_popuwindow
            ButterKnife.bind(this, view);
        }
    }

    public static class PopuwindowViewJFJLHold {


        @BindView(R.id.toolbar_backImg)
        ImageView toolbarBackImg;
        @BindView(R.id.toolbar_back)
        RelativeLayout toolbarBack;
        @BindView(R.id.toolbar_title)
        TextView toolbarTitle;
        @BindView(R.id.back_right_icon)
        ImageView backRightIcon;
        @BindView(R.id.back_right_txt)
        TextView backRightTxt;
        @BindView(R.id.toolbar_right)
        RelativeLayout toolbarRight;
        @BindView(R.id.toolbar)
        AutoToolbar toolbar;
        @BindView(R.id.membercentermain_jfjl_popuwindow_RecyclerView)
        RecyclerView membercentermainJfjlPopuwindowRecyclerView;

        public PopuwindowViewJFJLHold(View view) {
//            R.layout.membercentermain_jfjl_popuwindow
            ButterKnife.bind(this, view);
        }
    }

    public static class PopuwindowViewHold {


        @BindView(R.id.toolbar_backImg)
        ImageView toolbarBackImg;
        @BindView(R.id.toolbar_back)
        RelativeLayout toolbarBack;
        @BindView(R.id.toolbar_title)
        TextView toolbarTitle;
        @BindView(R.id.back_right_icon)
        ImageView backRightIcon;
        @BindView(R.id.back_right_txt)
        TextView backRightTxt;
        @BindView(R.id.toolbar_right)
        RelativeLayout toolbarRight;
        @BindView(R.id.toolbar)
        AutoToolbar toolbar;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_xfcp)
        TextView membercentermainGlzdjfPopuwindowXfcp;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_zdxffw)
        TextView membercentermainGlzdjfPopuwindowZdxffw;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_priceNow)
        TextView membercentermainGlzdjfPopuwindowPriceNow;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_priceOld)
        TextView membercentermainGlzdjfPopuwindowPriceOld;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_xfsj)
        TextView membercentermainGlzdjfPopuwindowXfsj;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_ktfwsj)
        TextView membercentermainGlzdjfPopuwindowKtfwsj;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_payWay_img)
        ImageView membercentermainGlzdjfPopuwindowPayWayImg;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_payWay_zfb)
        TextView membercentermainGlzdjfPopuwindowPayWayZfb;
        @BindView(R.id.membercentermain_glzdjf_popuwindow_payWay_close)
        TextView membercentermainGlzdjfPopuwindowPayWayClose;

        public PopuwindowViewHold(View view) {
//            R.layout.membercentermain_glzdjf_popuwindow
            ButterKnife.bind(this, view);
        }
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.mErrorHandler = null;
        this.mAppManager = null;
        this.mImageLoader = null;
        this.mApplication = null;
    }
}
